// 公共 mutations
import * as types from './mutation-types'

export default {
  [types.KEEP_ALIVE] (state, keepAlive) {
    state.keepAlive = keepAlive || false
  },
  [types.ACTIVE_TAB] (state, activeTab) {
    state.activeTab = activeTab || '1'
  },
  [types.MENU] (state, menu) {
    state.menu = menu || []
  }
}
